Skip to content

Conversation

jason-ha
Copy link
Contributor

@jason-ha jason-ha commented Aug 29, 2025

Console logging updates:

  • Log extra error from test process to console without mocha redirection
  • Use FLUID_TEST_VERBOSE to control child logging to optionally output messaging and select telemetry

Under debugger updates:

  • For longer test cases, modify that case's timeout without impacting general timeouts.
  • Detect when debugger is attached and alter timeouts to increase by x1000

@jason-ha jason-ha requested a review from WillieHabi August 29, 2025 00:57
WillieHabi
WillieHabi previously approved these changes Aug 29, 2025
@jason-ha jason-ha force-pushed the presence/test/readonly-client-support branch from 71f55fd to e414272 Compare August 29, 2025 18:33
@jason-ha jason-ha force-pushed the presence/test/console-debuggability branch from 1364386 to 8fae418 Compare August 29, 2025 18:34
@jason-ha jason-ha force-pushed the presence/test/readonly-client-support branch from e414272 to ca2c5b4 Compare August 31, 2025 08:55
@jason-ha jason-ha force-pushed the presence/test/console-debuggability branch from 8fae418 to 1781491 Compare September 2, 2025 16:30
@jason-ha jason-ha changed the title test(client): debuggability with console logging test(client): debuggability via console or debugger Sep 2, 2025
@jason-ha jason-ha changed the base branch from presence/test/readonly-client-support to main September 2, 2025 16:34
@jason-ha jason-ha dismissed WillieHabi’s stale review September 2, 2025 16:34

The base branch was changed.

@jason-ha jason-ha force-pushed the presence/test/console-debuggability branch from 1781491 to 84d3389 Compare September 2, 2025 17:00
@github-actions github-actions bot added area: runtime Runtime related issues base: main PRs targeted against main branch labels Sep 2, 2025
- log extra error from test process to console without mocha redirection
- use FLUID_TEST_VERBOSE to control child logging that now optional outputs messaging and select telemetry
- For longer test cases, modify that case's timeout without impacting general timeouts.
- Detect when debugger is attached and alter timeouts to increase by x1000
@jason-ha jason-ha force-pushed the presence/test/console-debuggability branch from 84d3389 to e1008e4 Compare September 2, 2025 17:34
@jason-ha jason-ha marked this pull request as ready for review September 2, 2025 17:34
@github-actions github-actions bot removed the area: runtime Runtime related issues label Sep 2, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances test debuggability by adding console logging controls and debugger timeout handling for multi-process end-to-end tests. The changes enable better visibility into test execution and prevent debugging timeouts.

  • Adds debugger detection and automatic timeout adjustment (x1000 multiplier when debugger attached)
  • Implements FLUID_TEST_VERBOSE environment variable to control child process logging verbosity
  • Introduces testConsole to capture original console methods before test infrastructure modifications

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
presenceTest.spec.ts Adds debugger detection, timeout management, and dynamic test timeout setting
orchestratorUtils.ts Implements testConsole capture and child logging verbosity controls
childClient.ts Adds selective telemetry logging and message verbosity based on environment variable
package.json Adds new npm scripts for verbose and very verbose test execution

Copy link
Contributor

@WillieHabi WillieHabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jason-ha jason-ha enabled auto-merge (squash) September 2, 2025 18:14
@jason-ha jason-ha merged commit c33b78f into main Sep 2, 2025
35 checks passed
@jason-ha jason-ha deleted the presence/test/console-debuggability branch September 2, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants